import store from '../store/index.js'
const rootUrl = 'http://192.168.0.102:8000/api';
module.exports = {
  token:store.state.userInfo ? store.state.userInfo.token : null,
  social: rootUrl + "/social/",
  social_add: rootUrl + "/social_add/",
  concerned:rootUrl + "/concerned/",
  topic:rootUrl + "/topic/",
  topic_nav:rootUrl + "/topic/?callback=true",
  topic_detail:rootUrl + "/topic_detail/",
  news:rootUrl + "/news/",
  news_add:rootUrl+"/news_add/",
  follow:rootUrl + "/follow/",
  follow_add:rootUrl + "/follow_add/",
  login:rootUrl + "/login/",
  message:rootUrl + "/message/",
  favor_record:rootUrl + "/favor_record/",
  comments_add:rootUrl + "/comments_add/",
  account:rootUrl + "/account/",
  user_news:rootUrl + "/user_news/",
  reset_pwd:rootUrl + "/reset_pwd/",
  email_add:rootUrl + "/email_add/",
  user_data:rootUrl + "/user_data/",
  upload:rootUrl + "/upload/",
  user_data_add:rootUrl + "/user_data_add/",
  user_space:rootUrl + "/user_space/",
  user_posts:rootUrl + "/user_posts/",
  user_setpwd:rootUrl + "/user_setpwd/",
  user_orther:rootUrl + "/user_orther/",
  search:rootUrl + "/search/",
  user_orther_list:rootUrl + "/user_orther_list/"
}